﻿using Abp.Application.Services.Dto;
using Mt.Site.Core.Organizations.Posts;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.Organizations.Posts.Dto
{
    public class PostEditDto : AuditedEntityDto<long>
    {
        [Required]
        [StringLength(Post.MaxDisplayNameLength)]
        public string DisplayName { get; set; }

        [StringLength(Post.MaxShortNameLength)]
        public string ShortName { get; set; }

        public int Order { get; set; }

        [Range(1, long.MaxValue)]
        public long OrganizationId { get; set; }

        public PostGroup PostLevel { get; set; }

        public bool DeputyPresiding { get; set; }

        public bool IsActive { get; set; }
    }
}
